import request from '../utils/request';

//表单的添加
export const insert = data => {
    return request({
        url: 'api/From/FromInsert',
        method: 'post',
        data: data
    });
};
//表单的显示
export const getfrom = data => {
    return request({
        url: 'api/From/GetFrom',
        method: 'get',
        params: data
    });
};
//表单的删除
export const delefrom = data => {
    return request({
        url: 'api/From/FromDelete',
        method: 'delete',
        params: {id:data}
    });
};
//表单的修改
export const putfrom = data => {
    return request({
        url: 'api/From/FromUpdate',
        method: 'put',
        data: data
    });
};
//表单的查询根据id
export const getIdfrom = data => {
    return request({
        url: 'api/From/GetById',
        method: 'get',
        params: {id:data}
    });
};